package com.abi${classpath}.request;

import com.abi.task.common.api.base.PageResp;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author:Andy.Tan
 * @Description: 分页查询${targetDesc}出参
 */
@Data
@Schema
public class List${targetName_Iii}Res extends PageResp implements Serializable {

    @Schema(name = "${targetDesc}列表")
    private List<${targetName_Iii}Bean> ${targetName_iii}BeanList;

    /**
     * ${targetDesc}bean
     */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @ToString
    @ApiModel(value = "List${targetName_Iii}Res_${targetName_Iii}")
    public static class ${targetName_Iii}Bean implements Serializable {

        <#list columnList as temp>
        <#if temp.columnName_iii!="createTime" &&  temp.columnName_iii!="createBy" && temp.columnName_iii!="updateTime" && temp.columnName_iii!="updateBy" && temp.columnName_iii!="isDelete" >
        @Schema(name = "${temp.columnComment?if_exists}")
        private ${temp.columnType} ${temp.columnName_iii};

        </#if>
        </#list>
        @ApiModelProperty(value = "创建时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private LocalDateTime createTime;

        @ApiModelProperty(value = "修改时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private LocalDateTime updateTime;

    }
}
